package cn.edu.hitwh.kanlema.controller;


import cn.edu.hitwh.kanlema.dto.Result;
import cn.edu.hitwh.kanlema.entity.CinemaType;
import cn.edu.hitwh.kanlema.service.ICinemaTypeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author vvcoder
 * @since 2025-8-18
 */
@RestController
@RequestMapping("/cinema-type")
public class CinemaTypeController {
    @Resource
    private ICinemaTypeService typeService;

    @GetMapping("list")
    @ApiOperation("查询影院类型列表")
    public Result queryTypeList() {
        List<CinemaType> typeList = typeService.getTypeList();
        return Result.ok(typeList);
    }
}
